const path  = require('path')

module.exports = {
  publicPath: "./",
  devServer: {
    proxy: {
      "/api": {
        target: "http://152.136.185.210:5000",
        pathRewrite: {
          "^/api": ""
        },
        changeOrigin: true
      }
    }
  },
  chainWebpack: (config) => {
    config.resolve.alias
    .set("@", path.resolve(__dirname, 'src'))
    .set("components", "@/components")
  },

}
